package vn.sunnet.game.SinhTon.object;

import vn.sunnet.game.SinhTon.global.Assets;

import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class SkillShopObject extends GameObject {
	private int id;
	private String name;
	private int damage; // máu
	private int damageRegion; // bán kính sát thương
	private int timeReload; // Thời gian sử dụng lại
	private int coinValue; // xu
	private boolean isLock;
	private TextureRegion trSkill, trSkill_hover;
	private String description;
	
	public SkillShopObject(int id) {
		super(103 + 156 * (id - 1), 315, 125, 125);
		this.id = id;
		switch (id) {
		case 1:
			name = "Rocket";
			damage = 30;
			damageRegion = 100;
			timeReload = 25;
			coinValue = 2000;
			break;

		case 2:
			name = "Băng giá";
			isLock = true;
			// damage = 30;
			damageRegion = 1280;
			timeReload = 30;
			coinValue = 2800;
			break;
		case 3:
			name = "Lựu đạn";
			isLock = true;
			damage = 60;
			damageRegion = 160;
			timeReload = 35;
			coinValue = 3500;
			break;
		}
		description = "Tên: " + name + "\nSát thương: "
				+ String.valueOf(damage)
				+ "\nVùng ảnh hưởng: " + String.valueOf(damageRegion) + "\nThời gian sử dụng lại: " + String.valueOf(timeReload);
	}
	public TextureRegion getTrSkill() {
		trSkill = Assets.trSkill.get(id - 1);
		return trSkill;
	}
	
	public TextureRegion getTrSkill_hover() {
		trSkill_hover = Assets.trSkill_hover.get(id - 1);
		return trSkill_hover;
	}
	
	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public int getDamageRegion() {
		return damageRegion;
	}

	public int getDamage() {
		return damage;
	}

	public int getTimeReload() {
		return timeReload;
	}

	public void setTimeReload(int timeReload) {
		this.timeReload = timeReload;
	}

	public int getCoinValue() {
		return coinValue;
	}

	public boolean isLock() {
		return isLock;
	}

	public void setLock(boolean isLock) {
		this.isLock = isLock;
	}
	public String getDescription() {
		return description;
	}

}
